package com.zoweunion.mechanic.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zoweunion.mechanic.entity.PromotionCouponEntity;
import com.zoweunion.mechanic.entity.UserCouponEntity;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * 优惠券用户关联表
 * 
 * @author xp
 * @email 17688825585@163.com
 * @date 2020-08-11 13:34:07
 */
@Component
public interface UserCouponDao  extends BaseMapper<UserCouponEntity>{

    List<UserCouponEntity> queryPage(@Param("map") Map<String, Object> map);

    PromotionCouponEntity userCouponHead(@Param("map")Map<String, Object> params);

    Map<String,Object> selectAccount(@Param("mobilePhone")String mobilePhone);

    void insertUserGive(@Param("params")UserCouponEntity params);

    List<Map<String,Object>> selectUserGive(@Param("mobilePhone")String mobilePhone);

    Map<String,Object> selectUnRegister(@Param("id")Long id);

    int  selectByList(@Param("id")Long id);

    String selectMobilePhone(@Param("giveUserId")String giveUserId);

}
